import server from "../../utils/axios.js";
/**
 * @description 角色
 */
export default class System10 {
  constructor() {}
  /**
   * @description 得到角色List
   */
  static async get(search = "") {
    let result = await server(this.name, "Get", { search });
    return result;
  }
  /**
   * @description 得到用户List
   */
  static async getSystem1(str10) {
    let result = await server(this.name, "GetSystem1", { str10 });
    return result;
  }
  /**
   * @description 得到菜单List
   */
  static async getSystem12(str10) {
    let result = await server(this.name, "GetSystem12", { str10 });
    return result;
  }
  /**
   * @description 得到按钮List
   */
  static async getSystem13(str20) {
    let result = await server(this.name, "GetSystem13", { str20 });
    return result;
  }
  /**
   * @description 得到功能List
   */
  static async Save(data) {
    let result = await server(this.name, "Save", data);
    return result;
  }
  /**
   * @description 删除用户
   */
  static async removeUser(str30, str20) {
    let result = await server(this.name, "RemoveUser", { str20, str30 });
    return result;
  }
  /**
   * @description 新增用户
   */
  static async addUser(str30, str20) {
    let result = await server(this.name, "addUser", { str20, str30 });
    return result;
  }
  /**
   * @description 得到菜单编辑
   */
  static async saveSys12(str20, str30, type) {
    let result = await server(this.name, "SaveSys12", { str20, str30, type });
    return result;
  }
  /**
   * @description 得到菜单编辑
   */
  static async saveSys13(str20, str30, str40, str50, type) {
    let result = await server(this.name, "SaveSys13", {
      str20,
      str30,
      str40,
      str50,
      type
    });
    return result;
  }
}
